var siteinfo = require("../siteinfo.js"), _api_root = "";

if (-1 != siteinfo.acid) {
    var siteroot = siteinfo.siteroot.substr(0, siteinfo.siteroot.indexOf("app/index.php"));
    _api_root = _api_root = siteroot + "addons/zjhj_mall/core/web/index.php?_acid=" + siteinfo.acid + "&r=api/";
} else _api_root = siteinfo.apiroot;

var api = {
    index: _api_root + "default/index",
    default: {
        store: _api_root + "default/store",
        index: _api_root + "default/index",
        goods_list: _api_root + "default/goods-list",
        cat_list: _api_root + "default/cat-list",
        goods: _api_root + "default/goods",
        goods_shop: _api_root + "default/goods-shop",
        district: _api_root + "default/district",
        district_shop: _api_root + "default/district-shop",
        goods_attr_info: _api_root + "default/goods-attr-info",
        upload_image: _api_root + "default/upload-image",
        upload_video: _api_root + "default/upload-video",
        comment_list: _api_root + "default/comment-list",
        article_list: _api_root + "default/article-list",
        article_detail: _api_root + "default/article-detail",
        video_list: _api_root + "default/video-list",
        goods_qrcode: _api_root + "default/goods-qrcode",
        coupon_list: _api_root + "default/coupon-list",
        verify_card: _api_root + "default/verify-card",
        topic_list: _api_root + "default/topic-list",
        topic: _api_root + "default/topic",
        navbar: _api_root + "default/navbar",
        navigation_bar_color: _api_root + "default/navigation-bar-color",
        shop_list: _api_root + "default/shop-list",
        shop_cats: _api_root + "default/shop-cats",
        shop_detail: _api_root + "default/shop-detail",
        user_level: _api_root + "default/user-level",
        topic_type: _api_root + "default/topic-type",
        buy_data: _api_root + "default/buy-data",
        goods_recommend: _api_root + "default/goods-recommend",
        search: _api_root + "default/search",
        search_shop: _api_root + "default/search-shop",
        cats: _api_root + "default/cats",
        topic_qrcode: _api_root + "default/topic-qrcode",
        form_id: _api_root + "default/form-id",
        get_location: _api_root + 'default/location-content',
        browse: _api_root + 'default/browse',
        browse_list: _api_root + 'default/browse-list',
        dle_goods_log:_api_root + 'default/dle-goods-log',
        dle_shop_log:_api_root + 'default/dle-shop-log', 
        evaluate_center:_api_root + 'default/evaluate-center',
        cart_reduce: _api_root + 'default/cart-reduce',
        hourly_miaosha: _api_root + 'default/hourly-miaosha',
        get_goods_youhui:  _api_root + 'default/get-goods-youhui',
	      shortest_store: _api_root + 'default/shortest-store',
        store_list: _api_root + 'default/store-list',
        store_type: _api_root + 'default/store-type',
        brand_list: _api_root + 'default/get-brand-list',
        recommend_course: _api_root + 'default/recommend-course',
    },
    admin: {
      index : {
        index: _api_root + "admin/index/index",
        user_info: _api_root + "admin/index/user-info",
        table: _api_root + "admin/index/table",
      },
      order : {
        get_list : _api_root + "admin/order/get-list",
        get_refund: _api_root + "admin/order/get-refund",
        cancel: _api_root + "admin/order/cancel",
        send: _api_root + "admin/order/send",
        print: _api_root + "admin/order/print",
        express: _api_root + 'admin/order/express',
        ex_detail: _api_root + 'admin/order/ex-detail',
        refund_handle: _api_root + 'admin/order/refund-handle',
        express_detail: _api_root + "order/express-detail",
        get_waimai_send_type: _api_root + "admin/order/get-waimai-send-type",
        waimai_send: _api_root + "admin/order/waimai-send",
        detail: _api_root + "admin/order/detail"
      },
      setting : {
        index: _api_root + "admin/setting/index",
        setting: _api_root + "admin/setting/setting",
        address: _api_root + "admin/setting/address",
      },
      goods: {
        list: _api_root + "admin/goods/list",
        goods_switch: _api_root + "admin/goods/goods-switch",
        goods_del: _api_root + "admin/goods/goods-del",
        get_cat: _api_root + 'admin/goods/get-cat',
        postage: _api_root + 'admin/goods/postage',
        card: _api_root + 'admin/goods/card',
        edit: _api_root + 'admin/goods/edit',
        get_mch_cat: _api_root + 'admin/goods/get-mch-cat',
        attr_arr_list: _api_root + 'admin/goods/attr-arr-list',
      },
      mch: {
        review: _api_root + 'admin/mch/review',
        review_detail: _api_root + 'admin/mch/review-detail',
        review_switch: _api_root + 'admin/mch/review-switch',
      },
      cash: {
        list: _api_root + 'admin/cash/list',
        submit: _api_root + 'admin/cash/submit',
      },
      comment: {
        list: _api_root + 'admin/comment/list',
        hide: _api_root + 'admin/comment/hide',
        detail: _api_root + 'admin/comment/detail',
        reply: _api_root + 'admin/comment/reply'
      },
      user: {
        user: _api_root + 'admin/user/user',
        share: _api_root + 'admin/user/share',
        clerk: _api_root + 'admin/user/clerk',
        integral: _api_root + 'admin/user/integral',
        balance: _api_root + 'admin/user/balance',
        clerk_edit: _api_root + 'admin/user/clerk-edit'
      },
      cat: {
        cat: _api_root + 'admin/cat/cat',
        get_cat: _api_root + 'admin/cat/get-cat',
        pick_link: _api_root + 'admin/cat/pick-link',
        edit: _api_root + 'admin/cat/edit',
        status: _api_root + 'admin/cat/status',
        delete: _api_root + 'admin/cat/delete',
      },
      share: {
        list: _api_root + 'admin/share/list',
        status: _api_root + 'admin/share/status'
      }
    },
    commander: {
      join: _api_root + "commander/join",
      check: _api_root + "commander/check",
      get_info: _api_root + "commander/get-info",
      get_price: _api_root + "commander/get-price",
      apply: _api_root + "commander/apply",
      cash_detail: _api_root + "commander/cash-detail",
      get_qrcode: _api_root + "commander/get-qrcode",
      shop_share: _api_root + "commander/shop-share",
      bind_parent: _api_root + "commander/bind-parent",
      get_team: _api_root + "commander/get-team",
      get_order: _api_root + "commander/get-order",
      index: _api_root + "commander/index",
      up_peisong: _api_root + "commander/up-peisong",
      shop_order_tpl: _api_root + "commander/shop-order-tpl",
      tuanzhang_type: _api_root + 'commander/tuanzhang-type',
      tuanzhang_save: _api_root + 'commander/tuanzhang-save'
    },
    cart: {
        list: _api_root + "cart/list",
        add_cart: _api_root + "cart/add-cart",
        delete: _api_root + "cart/delete",
        cart_edit: _api_root + "cart/cart-edit",
        find_goods: _api_root + "cart/goods",
        offline_list: _api_root + 'cart/cart-offline-list',
        add_cart_offline: _api_root + 'cart/offline',
        offline_delete: _api_root + 'cart/offline-delete',
        cart_offline_edit: _api_root + 'cart/cart-offline-edit'
    },
  weitao: {
    index: _api_root + "weitao/index",
    get_topic: _api_root + "weitao/get-topic",
    get_topic_list: _api_root + "weitao/get-topic-list",
    add_article_view: _api_root + "weitao/add-article-view",
    add_article: _api_root + "weitao/add-article",
    user_center: _api_root + "weitao/user-center",
    focus_user: _api_root + "weitao/focus-user",
    like_article: _api_root + "weitao/like-article",
    article_detail: _api_root + "weitao/article-detail",
    review_article: _api_root + "weitao/review-article",
    delete_article: _api_root + "weitao/delete-article",
    get_message: _api_root + "weitao/get-message",
    get_not_like: _api_root + "weitao/get-not-like",
    get_not_review: _api_root + "weitao/get-not-review",
    edit_user_center: _api_root + "weitao/edit-user-center",
    user_chat: _api_root + "weitao/user-chat",
    send_user_chat: _api_root + "weitao/send-user-chat",
    get_not_focus: _api_root + "weitao/get-not-focus",
    search_data: _api_root + "weitao/search-list",
    page_index: _api_root + "weitao/page-index",
  },
    passport: {
        login: _api_root + "passport/login",
        on_login: _api_root + "passport/on-login"
    },
    order: {
        submit_preview: _api_root + "order/submit-preview",
        peisong: _api_root + "order/peisong",
    delivery_order_confirm: _api_root + "order/delivery-order-confirm",
        submit: _api_root + "order/submit",
        pay_data: _api_root + "order/pay-data",
        list: _api_root + "order/list",
        delivery_list: _api_root + "order/delivery-list",
        revoke: _api_root + "order/revoke",
        confirm: _api_root + "order/confirm",
        count_data: _api_root + "order/count-data",
        detail: _api_root + "order/detail",
        de_detail: _api_root + "order/de-detail",
        refund_preview: _api_root + "order/refund-preview",
        refund: _api_root + "order/refund",
        refund_detail: _api_root + "order/refund-detail",
        comment_preview: _api_root + "order/comment-preview",
        comment: _api_root + "order/comment",
        express_detail: _api_root + "order/express-detail",
        clerk: _api_root + "order/clerk",
        clerk_detail: _api_root + "order/clerk-detail",
        get_qrcode: _api_root + "order/get-qrcode",
        location: _api_root + "order/location",
        refund_send: _api_root + "order/refund-send",
        new_submit_preview: _api_root + "order/new-submit-preview",
        new_submit: _api_root + "order/new-submit",
        quanfan: _api_root + "order/quanfan",
        clerk_verify: _api_root + "order/clerk-verify",
        pay_type_list: _api_root + "order/get-pay-type-list",
        help_list:_api_root + "order/get-help-order-list",
    },
    user: {
        address_list: _api_root + "user/address-list",
        address_detail: _api_root + "user/address-detail",
        address_save: _api_root + "user/address-save",
        address_set_default: _api_root + "user/address-set-default",
        address_delete: _api_root + "user/address-delete",
        save_form_id: _api_root + "user/save-form-id",
        favorite_add: _api_root + "user/favorite-add",
        favorite_remove: _api_root + "user/favorite-remove",
        favorite_list: _api_root + "user/favorite-list",
        index: _api_root + "user/index",
        wechat_district: _api_root + "user/wechat-district",
        add_wechat_address: _api_root + "user/add-wechat-address",
        topic_favorite: _api_root + "user/topic-favorite",
        topic_favorite_list: _api_root + "user/topic-favorite-list",
        member: _api_root + "user/member",
        card: _api_root + "user/card",
        card_qrcode: _api_root + "user/card-qrcode",
        card_clerk: _api_root + "user/card-clerk",
        web_login: _api_root + "user/web-login",
        submit_member: _api_root + "user/submit-member",
        user_binding: _api_root + "user/user-binding",
        user_hand_binding: _api_root + "user/user-hand-binding",
        user_empower: _api_root + "user/user-empower",
        sms_setting: _api_root + "user/sms-setting",
        authorization_bind: _api_root + "user/authorization-bind",
        check_bind: _api_root + "user/check-bind",
        card_detail: _api_root + "user/card-detail",
        get_delivery_info: _api_root + 'user/get-delivery-info',
        delivery_user_status: _api_root + "user/delivery-user-status",
        get_delivery_qrcode: _api_root + 'user/get-delivery-qrcode',
        get_delivery_list: _api_root + "user/get-delivery-list",
        delivery_grab_order: _api_root + "user/delivery-grab-order",
        get_delivery_account: _api_root + "user/get-delivery-account",
        get_area_info: _api_root + "user/get-area-info",
        user_share_number: _api_root + 'user/user-share-number',
        user_footprint: _api_root + 'user/user-footprint',
    },
    share: {
        join: _api_root + "share/join",
        check: _api_root + "share/check",
        get_info: _api_root + "share/get-info",
        get_price: _api_root + "share/get-price",
        apply: _api_root + "share/apply",
        cash_detail: _api_root + "share/cash-detail",
        get_qrcode: _api_root + "share/get-qrcode",
        shop_share: _api_root + "share/shop-share",
        bind_parent: _api_root + "share/bind-parent",
        get_team: _api_root + "share/get-team",
        get_order: _api_root + "share/get-order",
        index: _api_root + "share/index",
        get_team_order: _api_root + "commander/get-order-team",
        help_order: _api_root + "share/help-order"
    },
    coupon: {
        index: _api_root + "coupon/index",
        share_send: _api_root + "coupon/share-send",
        receive: _api_root + "coupon/receive",
        coupon_detail: _api_root + "coupon/detail"
    },
    verify: {
      index: _api_root + "verify/index",
      verify_detail: _api_root + "verify/verify-detail",
      verify_order: _api_root + "verify/verify-order",
      verify_log: _api_root + "verify/verify-log",
      verify_code: _api_root + "verify/verify-code"
    },
    supplier: {
      apply_submit: _api_root + "supplier/apply-submit",
      apply: _api_root + "supplier/apply"
    },
    miaosha: {
        list: _api_root + "miaosha/list",
        goods_list: _api_root + "miaosha/goods-list",
        details: _api_root + "miaosha/details",
        submit_preview: _api_root + "miaosha/submit-preview",
        submit: _api_root + "miaosha/submit",
        pay_data: _api_root + "miaosha/pay-data",
        order_list: _api_root + "miaosha/order-list",
        order_details: _api_root + "miaosha/order-details",
        order_revoke: _api_root + "miaosha/revoke",
        express_detail: _api_root + "miaosha/express-detail",
        confirm: _api_root + "miaosha/confirm",
        comment_preview: _api_root + "miaosha/comment-preview",
        comment: _api_root + "miaosha/comment",
        refund_preview: _api_root + "miaosha/refund-preview",
        refund: _api_root + "miaosha/refund",
        refund_detail: _api_root + "miaosha/refund-detail",
        comment_list: _api_root + "miaosha/comment-list",
        goods_qrcode: _api_root + "miaosha/goods-qrcode",
        goods_shop: _api_root + "miaosha/goods-shop"
    },
    group: {
        index: _api_root + "group/index/index",
        list: _api_root + "group/index/good-list",
        details: _api_root + "group/index/good-details",
        goods_shop: _api_root + "group/index/goods-shop",
        goods_attr_info: _api_root + "group/index/goods-attr-info",
        submit_preview: _api_root + "group/order/submit-preview",
        submit: _api_root + "group/order/submit",
        pay_data: _api_root + "group/order/pay-data",
        order: {
            list: _api_root + "group/order/list",
            detail: _api_root + "group/order/detail",
            express_detail: _api_root + "group/order/express-detail",
            comment_preview: _api_root + "group/order/comment-preview",
            comment: _api_root + "group/order/comment",
            confirm: _api_root + "group/order/confirm",
            goods_qrcode: _api_root + "group/order/goods-qrcode",
            get_qrcode: _api_root + "group/order/get-qrcode",
            clerk: _api_root + "group/order/clerk",
            clerk_order_details: _api_root + "group/order/clerk-order-details",
            revoke: _api_root + "group/order/revoke",
            refund_preview: _api_root + "group/order/refund-preview",
            refund: _api_root + "group/order/refund",
            refund_detail: _api_root + "group/order/refund-detail"
        },
        group_info: _api_root + "group/order/group",
        comment: _api_root + "group/index/goods-comment",
        goods_qrcode: _api_root + "group/index/goods-qrcode",
        search: _api_root + "group/index/search"
    },
    book: {
        index: _api_root + "book/index/index",
        list: _api_root + "book/index/good-list",
        details: _api_root + "book/index/good-details",
        submit_preview: _api_root + "book/order/submit-preview",
        submit: _api_root + "book/order/submit",
        order_list: _api_root + "book/order/list",
        order_cancel: _api_root + "book/order/cancel",
        order_pay: _api_root + "book/order/pay-data",
        order_details: _api_root + "book/order/order-details",
        shop_list: _api_root + "book/index/shop-list",
        get_qrcode: _api_root + "book/order/get-qrcode",
        clerk: _api_root + "book/order/clerk",
        apply_refund: _api_root + "book/order/apply-refund",
        comment_preview: _api_root + "book/order/comment-preview",
        submit_comment: _api_root + "book/order/comment",
        goods_comment: _api_root + "book/index/goods-comment",
        goods_qrcode: _api_root + "book/index/goods-qrcode",
        clerk_order_details: _api_root + "book/order/clerk-order-details",
        goods_attr_info: _api_root + "book/index/goods-attr-info"
    },
    quick: {
        quick: _api_root + "quick/quick/quick",
        quick_goods: _api_root + "quick/quick/quick-goods",
        quick_car: _api_root + "quick/quick/quick-car"
    },
    fxhb: {
        open: _api_root + "fxhb/index/open",
        open_submit: _api_root + "fxhb/index/open-submit",
        detail: _api_root + "fxhb/index/detail",
        detail_submit: _api_root + "fxhb/index/detail-submit"
    },
    recharge: {
        index: _api_root + "recharge/index",
        list: _api_root + "recharge/list",
        submit: _api_root + "recharge/submit",
        record: _api_root + "recharge/record",
        detail: _api_root + "recharge/detail",
        yifang: _api_root + "recharge/yifang",
        daifang: _api_root + "recharge/daifang"
    },
    mch: {
      super_value: _api_root + "mch/index/super-value",

      hot_sale: _api_root + "mch/index/hot-sale",

        shop_navbar: _api_root + "mch/index/shop-navbar",
        apply: _api_root + "mch/index/apply",
        apply_submit: _api_root + "mch/index/apply-submit",
        guide_img:  _api_root + 'mch/index/guide-img',
        shop: _api_root + "mch/index/shop",
        shop_list: _api_root + "mch/index/shop-list",
        shop_cat: _api_root + "mch/index/shop-cat",
        location_info: _api_root + 'mch/index/location-info',
        mch_list: _api_root + "mch/index/mch-list",
        mch_comment_list: _api_root + "mch/index/mch-comment-list",
        cat_list: _api_root + "mch/index/cat-list",
        shop_introduce: _api_root + "mch/index/shop-introduce",
        teacher_detail: _api_root + "mch/index/teacher-detail",
        course_cat: _api_root + "mch/index/course-cat",
        user: {
            myshop: _api_root + "mch/user/myshop",
            setting: _api_root + "mch/user/setting",
            setting_submit: _api_root + "mch/user/setting-submit",
            shop_qrcode: _api_root + "mch/user/shop-qrcode",
            account: _api_root + "mch/user/account",
            cash: _api_root + "mch/user/cash",
            account_log: _api_root + "mch/user/account-log",
            cash_log: _api_root + "mch/user/cash-log",
            tongji_year_list: _api_root + "mch/user/tongji-year-list",
            tongji_month_data: _api_root + "mch/user/tongji-month-data",
            cash_preview: _api_root + "mch/user/cash-preview",
            settle_log: _api_root + "mch/user/settle-log",
            user_footprint:  _api_root + 'mch/user/user-footprint',
            sort_info: _api_root + 'mch/user/buy-sort-info',
            submit: _api_root + 'mch/user/submit',
            get_live_package:  _api_root + 'mch/user/get-live-package',
            live_package_submit:  _api_root + 'mch/user/live-package-submit',
            live_package_pay_data:  _api_root + 'mch/user/live-package-pay-data',
            live_package_log:  _api_root + 'mch/user/live-package-log',
        },
        goods: {
            list: _api_root + "mch/goods/list",
            set_status: _api_root + "mch/goods/set-status",
            delete: _api_root + "mch/goods/delete"
        },
        order: {
            list: _api_root + "mch/order/list",
            jujue: _api_root + "mch/order/jujue",
            agree: _api_root + "mch/order/agree",
            mslist: _api_root + "mch/order/ms-list",
            ptlist: _api_root + "mch/order/pt-list",
            yylist: _api_root + "mch/order/yy-list",
            bargainlist: _api_root + "mch/order/bargain-list",
            quanfan: _api_root + "mch/order/quanfan",
            detail: _api_root + "mch/order/detail",
            ptdetail: _api_root + "mch/order/pt-detail",
            msdetail: _api_root + "mch/order/ms-detail",
            yydetail: _api_root + "mch/order/yy-detail",
            bargaindetail: _api_root + "mch/order/bargain-detail",
            send: _api_root + "mch/order/send",
            ptsend: _api_root + "mch/order/pt-send",
            mssend: _api_root + "mch/order/ms-send",
            yysend: _api_root + "mch/order/yy-send",
            bargainsend: _api_root + "mch/order/bargain-send",
            refund: _api_root + "mch/order/refund",
            msrefund: _api_root + "mch/order/ms-refund",
            ptrefund: _api_root + "mch/order/pt-refund",
            yyrefund: _api_root + "mch/order/yy-refund",
            edit_price: _api_root + "mch/order/edit-price",
            refund_detail: _api_root + "mch/order/refund-detail",
            yyrefund_detail: _api_root + "mch/order/yy-refund-detail",
            msrefund_detail: _api_root + "mch/order/ms-refund-detail",
            ptrefund_detail: _api_root + "mch/order/pt-refund-detail",
            send_type: _api_root + "mch/order/send-type",
        },
        cat: {
          get_list: _api_root + 'mch/cat/list',
          delete: _api_root + 'mch/cat/delete',
          edit: _api_root + 'mch/cat/edit',
          get_cat: _api_root + 'mch/cat/get-cat',
          get_goods_list: _api_root + 'mch/index/shop-goods-list',
          submit:  _api_root + 'mch/cat/submit',



          
          edit_open: _api_root + 'mch/cat/mch-open-or-close-screen',
        }
    },
    integral: {
        index: _api_root + "integralmall/integralmall/index",
        coupon_info: _api_root + "integralmall/integralmall/coupon-info",
        exchange_coupon: _api_root + "integralmall/integralmall/exchange-coupon",
        integral_pay: _api_root + "integralmall/integralmall/integral-pay",
        goods_info: _api_root + "integralmall/integralmall/goods-info",
        submit_preview: _api_root + "integralmall/integralmall/submit-preview",
        submit: _api_root + "integralmall/integralmall/submit",
        list: _api_root + "integralmall/integralmall/list",
        revoke: _api_root + "integralmall/integralmall/revoke",
        order_submit: _api_root + "integralmall/integralmall/order-submit",
        confirm: _api_root + "integralmall/integralmall/confirm",
        get_qrcode: _api_root + "integralmall/integralmall/get-qrcode",
        clerk_order_details: _api_root + "integralmall/integralmall/clerk-order-details",
        clerk: _api_root + "integralmall/integralmall/clerk",
        explain: _api_root + "integralmall/integralmall/explain",
        exchange: _api_root + "integralmall/integralmall/exchange",
        register: _api_root + "integralmall/integralmall/register",
        integral_detail: _api_root + "integralmall/integralmall/integral-detail",
        goods_list: _api_root + "integralmall/integralmall/goods-list"
    },
    pond: {
        index: _api_root + "pond/pond/index",
        lottery: _api_root + "pond/pond/lottery",
        prize: _api_root + "pond/pond/prize",
        send: _api_root + "pond/pond/send",
        setting: _api_root + "pond/pond/setting",
        submit: _api_root + "pond/pond/submit",
        qrcode: _api_root + "pond/pond/qrcode"
    },
    svcard: {
        submit: _api_root + 'svcard/submit'
    },
    bargain: {
        index: _api_root + "bargain/default/index",
        goods: _api_root + "bargain/default/goods",
        goods_shop: _api_root + "bargain/default/goods-shop",
        bargain_submit: _api_root + "bargain/order/bargain-submit",
        activity: _api_root + "bargain/order/activity",
        bargain: _api_root + "bargain/order/bargain",
        order_list: _api_root + "bargain/order/order-list",
        setting: _api_root + "bargain/default/setting",
        goods_user: _api_root + "bargain/default/goods-user",
        qrcode: _api_root + "bargain/default/qrcode"
    },
    scratch: {
        index: _api_root + "scratch/scratch/index",
        receive: _api_root + "scratch/scratch/receive",
        setting: _api_root + "scratch/scratch/setting",
        prize: _api_root + "scratch/scratch/prize",
        submit: _api_root + "scratch/scratch/submit",
        log: _api_root + "scratch/scratch/log",
        qrcode: _api_root + "scratch/scratch/qrcode"
    },
    lottery: {
        index: _api_root + "lottery/default/index",
        prize: _api_root + "lottery/default/prize",
        detail: _api_root + "lottery/default/detail",
        goods: _api_root + "lottery/default/goods",
        submit: _api_root + "lottery/default/submit",
        qrcode: _api_root + "lottery/default/qrcode",
        setting: _api_root + "lottery/default/setting",
        lucky_code: _api_root + "lottery/default/lucky-code",
        clerk: _api_root + "lottery/default/clerk"
    },
    diy: {
        detail: _api_root + "diy/diy-template/detail"
    },
    step: {
        index: _api_root + "step/default/index",
        setting: _api_root + "step/default/setting",
        qrcode: _api_root + "step/default/qrcode",
        log: _api_root + "step/default/log",
        convert: _api_root + "step/default/convert",
        ranking: _api_root + "step/default/ranking",
        goods: _api_root + "step/default/goods",
        activity: _api_root + "step/default/activity",
        activity_join: _api_root + "step/default/activity-join",
        activity_detail: _api_root + "step/default/activity-detail",
        submit: _api_root + "step/default/submit",
        activity_log: _api_root + "step/default/activity-log",
        activity_submit: _api_root + "step/default/activity-submit",
        remind: _api_root + "step/default/remind",
        pic_list: _api_root + "step/default/pic-list",
        invite_detail: _api_root + "step/default/invite-detail"
    },
    posts: {
      list: _api_root + 'posts/list',
      good: _api_root + 'posts/good',
      get_comment: _api_root + 'posts/get-comment',
      add_comment: _api_root + 'posts/add-comment',
      is_power: _api_root + 'posts/is-power',
      add_posts: _api_root + 'posts/add-posts',
      get_order: _api_root + 'posts/get-order',
      tian_qi: _api_root + 'posts/tian-qi',
      posts_report: _api_root + 'posts/posts-report',
      self_list: _api_root + 'posts/self-list',
      update_status:  _api_root + 'posts/update-status',
    },
  scan_code_pay: {
    get_coupon: _api_root + 'scancodepay/index/get-coupon',
    get_qrcode: _api_root + 'scancodepay/index/get-qrcode',
    get_mch: _api_root + 'scancodepay/index/get-mch',
  },
  live: {
    qrcode: _api_root + 'live/live-qrcode',
    list: _api_root + 'live/get-list',
    replay_list: _api_root + 'live/get-replay-list',
    get_info : _api_root + 'live/live/get-info',
    submit_apply: _api_root + 'live/live/submit-apply',
    push: _api_root + 'live/live/push',
    player: _api_root + 'live/live/player',
    end: _api_root + 'live/live/end',
    get_goods: _api_root + 'live/live/get-goods',
    get_cat: _api_root + 'live/live/get-live-cat',
    get_list: _api_root + 'live/live/get-live-list',
    get_live: _api_root + 'live/live/get-live',
    follow_status: _api_root + 'live/live/follow-status',
    get_comment: _api_root + 'live/live/get-comment',
    add_comment: _api_root + 'live/live/add-comment',
    get_config: _api_root + 'live/live/get-config',
    get_anchor_info: _api_root + 'live/live/get-anchor-info',
    get_order_list: _api_root + 'live/live/get-order-list',
    get_share_list: _api_root + 'live/live/get-share-list',
    get_live_log: _api_root + 'live/live/get-live-log',
    get_goods_list: _api_root + 'live/live/get-goods-list',
    add_goods: _api_root + 'live/live/add-goods',
    del_goods: _api_root + 'live/live/del-goods',
    get_cash_info: _api_root + 'live/live/get-cash-info',
    cash_apply: _api_root + 'live/live/cash-apply',
    cash_detail: _api_root + 'live/live/cash-detail',
    start_live_by_pre: _api_root + 'live/live/start-live-by-pre',
    live_status: _api_root + 'live/live/live-status',
    get_anchor_room_list: _api_root + 'live/live/get-anchor-room-list',
  },
  vgoods:{
    list: _api_root + 'vgoods/list',
    good: _api_root + 'vgoods/good',
    is_power: _api_root + 'vgoods/is-power',
    add_posts: _api_root + 'vgoods/add-posts',
    tian_qi: _api_root + 'vgoods/tian-qi',
    edit: _api_root + 'vgoods/edit',
    get_cat: _api_root + 'vgoods/get-cat',
  },
  subsidy: {
    get_index: _api_root + "subsidy/index",
    get_list: _api_root + "subsidy/list",
    get_price : _api_root + 'subsidy/get-price',
    apply : _api_root + 'subsidy/apply',
    cash_detail : _api_root + 'subsidy/cash-detail'
  },
  auction: {
    recommend: _api_root + 'auction/recommend',
    exclusive: _api_root + "auction/exclusive",
    auctiongoods: _api_root + "auction/exclusive-bottom",
    goodslist: _api_root + "auction/recommend-auction-list",
    type: _api_root + "auction/auction-type",
    detail: _api_root + "auction/auction-detail",
    rule: _api_root + "auction/bid-rule",
    follow: _api_root + "auction/follow",
    bottom: _api_root + "auction/detail-bottom",
    bidDiscuss: _api_root + "auction/bid-discuss",
    publishComment: _api_root + "auction/publish-comment",
    supportStatus: _api_root + "auction/support-status",
    paySupport: _api_root + "auction/pay-support",
    startbid: _api_root + "auction/start-bid",
    my_auction: _api_root + "auction/my-auction",
    cancel: _api_root + "auction/cancel-auction-order",
    warn: _api_root + "auction/warn",
    submit_preview: _api_root + "auction/submit-preview",
    submit: _api_root + "auction/submit",
    pay_data: _api_root + "auction/pay-data"
  },
  crowdfund: {
    list: _api_root + "crowdfund/list",
    details: _api_root + "crowdfund/details",
    collection: _api_root + "crowdfund/collection",
    order_list: _api_root + "crowdfund/order-list",
    attr_info: _api_root + "default/cro-goods-attr-info",
    submit_preview: _api_root + "crowdfund/submit-preview",
    submit: _api_root + "crowdfund/submit",
    pay_data: _api_root + "crowdfund/pay-data",
    express_detail: _api_root + "crowdfund/express-detail",
    confirm: _api_root + "crowdfund/confirm",
  },
  vipcard: {
    index: _api_root + "vip-card/index",
    submit: _api_root + "vip-card/submit",
    pay_data: _api_root + "vip-card/pay-data",
    info: _api_root + "vip-card/info",
  },
  schoolclass: {
    class_detail: _api_root + "education/education/class-detail",

    store_class_type: _api_root + "education/education/store-class-type",
    teacher_list: _api_root + "education/education/teacher-list",
    store_class: _api_root + "education/education/store-class",



    second_recommend: _api_root + "education/education/second-recommend",
    teacher_list: _api_root + "education/education/teacher-list",
    myclass: _api_root + "education/education/myclass",
     student_sign: _api_root + 'education/education/student-sign',
    class_list: _api_root + 'education/education/class-list',
    class_student_list: _api_root + 'education/education/class-student-list',
    teacher_student_sign: _api_root + 'education/education/teacher-student-sign',
    teacher_commission:  _api_root +  "education/education/teacher-commission",
    teacher_recommend: _api_root +  "education/education/teacher-recommend",
    next_recommend:  _api_root + "education/education/next-recommend",
    commission_detail:   _api_root + "education/education/commission-detail",
    recommend_user:  _api_root +  "education/education/recommend-user",
    user_group_edit:  _api_root +  "education/education/user-group-edit",
    user_group_del:  _api_root +  "education/education/user-group-del",
    user_group_save:  _api_root +  "education/education/user-group-save",
    edit_user_group:  _api_root +  "education/education/edit-user-group",
    user_group_list:  _api_root +  "education/education/user-group-list",
    student_footprint: _api_root +  "education/education/student-footprint",
  },
};

module.exports = api;